<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<%@taglib uri="/struts-tags"  prefix="s"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	
	<table cellpadding="0">
		<thead>
			<tr bgcolor="#CCCCCC">
				<th><strong>&nbsp;</strong></th>
				<th><strong>Codigo</strong></th>
				<th><strong>Apellido y Nombre</strong></th>
				<th><strong>Sexo</strong></th>
				<th><strong>Fecha Nacimiento</strong></th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="alumnos" status="alumnosStatus">
				<tr bgcolor="<s:if test="#alumnosStatus.odd == true ">#0066FF</s:if><s:else>#FFFFFF</s:else>">
					<td>
<a href="<s:url action='editarAlumno-%{id}' method='editar'/>">Editar</a>					
<a href="<s:url action='eliminarAlumno-%{id}' />">Eliminar</a>
					</td>
					<td>
						<s:property value="id"/>
					</td>
					<td>
						<s:property value="apellido"/>, <s:property value="nombre"/>					</td>
					<td>
						<s:property value="sexo"/>					</td>
					<td>
						<s:date name="fechaNacimiento" format="dd/MM/yyyy"/>					</td>
				</tr>	
			</s:iterator>
		</tbody>
</table>
</body>
</html>